/**
参数： 主项目id，项目名称，项目周期，负责人
 */
const { sequelize, DataTypes } = require('sequelize');
const { ISFORCE } = require("../utils/dot");
const { Op } = require('sequelize');
const seq = require("../db/index");
const projectDetailBranchModel = seq.define('projectDetailBranchModel', {
    // 项目id
    projectId: {
        type: DataTypes.INTEGER,
        allowNull: false,
        comment: "项目id"
    },
    // 项目名称
    projectName: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "项目名称"
    },
    // 负责人
    projectLeader: {
        type: DataTypes.STRING,
        allowNull: false,
        comment: "负责人"
    },
    isDelte: {
        type: DataTypes.BOOLEAN,
        allowNull: false,
        defaultValue: false,
        comment: "是否删除"
    },

}, {});

if (ISFORCE == "true") {
    projectDetailBranchModel.sync({ force: true });
}

module.exports = projectDetailBranchModel;